package sunstar.com.xq.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * Created by Sun.Star on 2017/6/8.
 */
class MyFragmentPageAdapter(fm: FragmentManager?,var fragmentList:MutableList<Fragment>) : FragmentPagerAdapter(fm){

    override fun getItem(position: Int): Fragment =fragmentList[position]

    override fun getCount(): Int  = fragmentList.size
}